package br.unifor.ed.nodes;

public class SingleNode<E> {
	private E data;
	private SingleNode<E> next;

	public SingleNode () {
		this ( null, null );
	}
	
	public SingleNode ( E data ) {
		this ( data, null );
	}

	public SingleNode ( E data, SingleNode<E> next ) {
		super();
		setData ( data );
		setNext ( next );
	}

	public E getData() {
		return data;
	}

	public void setData(E data) {
		this.data = data;
	}

	public SingleNode<E> getNext() {
		return next;
	}

	public void setNext(SingleNode<E> next) {
		this.next = next;
	}
}
